#include <stdio.h>
#include "Heap.h"

int Compare(ElementType a, ElementType b)
{
    return a < b;
}

int main()
{
    Heap *heap;
    heap = InitHeap(20);
    heap->cmpFunc = Compare;
    for (int i = 10; i > -1; --i)
    {
        PushHeap(heap, i);
    }
    while (heap->curLength > 0)
    {
        printf("%d", PopHeap(heap));
    }
    return 0;
}